﻿namespace TroubleshootingofBeanBagAssistant.lCheck
{
	internal class HidMouseDeviceCheck : IDiagnosticCheck
	{
		public string Name => "HID鼠标设备检测";

		public CheckResult Run()
		{
			List<string> hidMouseIdList = USBHelper.GetHidMouserIDList();

			if (hidMouseIdList != null && hidMouseIdList.Count > 0)
			{
				return new CheckResult
				{
					Title = "已插入设备",
					Detail = $"检测到 {hidMouseIdList.Count} 个HID鼠标设备"
				};
			}
			else
			{
				return new CheckResult
				{
					Title = "未检测到插入的设备",
					Detail = "请检查设备连接状态"
				};
			}
		}
	}
}
